<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=basePath%>">
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script src="js/jquery-1.9.0.js" type="text/javascript"></script>
<script src="js/add.news.js" type="text/javascript"></script>
<title>添加新闻</title>
</head>
<style>
body{
background:#ffffff;
}
</style>
<body>
<form action="admin/news!addNews" method="post" name="newsForm" id="newsForm">
<table>
<tr><td>标题:</td><td><input type="text" name="news.title" id="title" /></td></tr>
<tr><td>类别：</td><td>  <select name="news.newstype.id" size="1" id="newstype" style="width:100px">
    <option selected="selected">d2</option>
  </select></td></tr>
<tr><td>关键字:</td><td><input type="text" name="news.keyword" id="keyword" /></td></tr>
<tr><td>内容:</td><td><textarea cols="120" id="newsContent" name="news.content" rows="200"></textarea></td></tr>
<tr><td colspan="2"><input id="add" type="submit" value="添加" /><input type="reset" name="cancel" id="cancel" value="重置" /></td></tr>
<ckeditor:replace replace="newsContent" basePath="/ckeditor/" />
</table>
 
</form>
</body>
</html>